<?php /* Smarty version 2.6.26, created on 2018-07-26 04:24:29
         compiled from D:%5Citemstudy%5Citem/admin%5Ctemplates/goods_order/comment.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>订单评价</span></div>
<div class="filter"> 
	<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
	<a href="?m=goods_order&a=comment" class="<?php if ($_GET['status'] == ''): ?>option_ch<?php else: ?>option<?php endif; ?>">全部</a>
	<a href="?m=goods_order&a=comment&status=1" class="<?php if ($_GET['status'] == '1'): ?>option_ch<?php else: ?>option<?php endif; ?>">通过</a>
	<a href="?m=goods_order&a=comment&status=0" class="<?php if ($_GET['status'] == '0'): ?>option_ch<?php else: ?>option<?php endif; ?>">屏蔽</a>
</div>
<div class="main"> 
	<table width="100%" class="ltable">
	  	<thead>
		  	<tr>
				<th width="30"><input type="checkbox" class="checked_all"/></th> 
				<th width="80">商户</th>
				<th width="500">评论内容</th>
				<th width="50">评分</th> 
				<th width="120">编辑</th>
		  	</tr>
	  	</thead>
		<tbody>
		<?php if ($this->_tpl_vars['data']['list']): ?>
			<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr> 
					<td><input name="key_id[]" type="checkbox" value="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="checked_list"/></td>
					<td><?php echo $this->_tpl_vars['i']['shop_name']; ?>
</td>
					<td style="padding-right:10px;"><?php echo $this->_tpl_vars['i']['content']; ?>
</td> 
					<td><?php echo $this->_tpl_vars['i']['score']; ?>
</td>  
					<td>
						<a href="javascript:;" onclick="edit_con('评论编辑','?m=goods_order&a=comment_edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
')" class="edit">编辑</a>
						<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a>
					</td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
			<tr><td colspan="5">还没有数据，赶快添加吧！</td></tr>
		<?php endif; ?>
		</tbody> 
	</table> 
	<div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=goods_order&a=comment_del', '.del_ck', 'as');
function edit_con(name,url){
	parent.dialog(name, url,600, 260); 
} 
</script>